/*
 * MainEntryPoint.java
 *
 * Created on December 7, 2007, 4:30 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jmaki.store.client;

import com.google.gwt.core.client.EntryPoint;

import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.Widget;

import jmaki.client.IBrowse;
import jmaki.client.AccordionMenu;
import jmaki.client.Cart;

/**
 *
 * @author gmurray
 */
public class MainEntryPoint implements EntryPoint {
    
    /** Creates a new instance of MainEntryPoint */
    public MainEntryPoint() {
    }
    
    /**
     * The entry point method, called automatically by loading a module
     * that declares an implementing class as an entry-point
     */
    public void onModuleLoad() {
        DockPanel dp = new DockPanel();

        AccordionMenu am = new AccordionMenu("menu.json", 200,400);
        
        IBrowse ib = new IBrowse(400,400);
        RootPanel.get().add(ib);
        dp.add(am, DockPanel.WEST);
        dp.add(ib, DockPanel.CENTER);
        
        Cart cart = new Cart(250, 400);
        dp.add(cart, DockPanel.EAST);
        
        RootPanel.get().add(dp);
    }
    
}
